home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group98a.txt
/
000025_icon-group-sender _Mon Feb 2 08:27:27 1998.msg
< prev
next >
Wrap
Internet Message Format
|
2000-09-20
|
2KB
Return-Path: <icon-group-sender>
Received: from kingfisher.CS.Arizona.EDU (kingfisher.CS.Arizona.EDU [192.12.69.239])
by baskerville.CS.Arizona.EDU (8.8.7/8.8.7) with SMTP id IAA00434
for <icon-group-addresses@baskerville.CS.Arizona.EDU>; Mon, 2 Feb 1998 08:27:26 -0700 (MST)
Received: by kingfisher.CS.Arizona.EDU (5.65v4.0/1.1.8.2/08Nov94-0446PM)
id AA10419; Mon, 2 Feb 1998 08:27:25 -0700
To: icon-group@optima.CS.Arizona.EDU
Date: Sun, 01 Feb 1998 04:04:28 GMT
From: evans.nospam@gte.net (MJE)
Message-Id: <6b0sd2$dad$1@gte2.gte.net>
Organization: None
Sender: icon-group-request@optima.CS.Arizona.EDU
Subject: Graphical Text with Lines
Errors-To: icon-group-errors@optima.CS.Arizona.EDU
Status: RO
Content-Length: 1065
We need to produce a particular type of plot in Icon. It shows a string with
lines connecting certain characters. Example:
This is a proportional font
| | | || |
| | | || |
| ---------------- |
| | |
| | |
---------------------------
According to the Icon book, I can indeed get text to print in a window in any
font I like.
How can I find out the coordinates where particular characters in the string
exist in the window, especially since the font is not monospaced but
proportional?
This information is required to make sure that the connecting lines point to the
right place.
I would be willing to entertain ideas about using a character-grid (monospaced)
instead. What I mean is, breaking the string up into characters and printing
each of them in turn, defining the coordinates as I go along. This technique is
nonideal. I would much rather just figure out where the characters are in the
proportional font string.
Mark Evans